package com.fanrenqiji.common.interceptor;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author lijian E-mail:ljz0721cx@163.com
 * @version 创建时间：2015年4月22日 下午4:38:39
 * @description
 */
public class FileInterceptor implements HandlerInterceptor {
	private static final Logger logger = Logger
			.getLogger(FileInterceptor.class);

	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		// TODO 文件是否是安全文件如果是就需要做拦截处理
		//return false;
		// 目前不做处理执行到true还需要执行下边的检查
		return true;
	}

	@Override
	public void postHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {

	}

	@Override
	public void afterCompletion(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex)
			throws Exception {

	}
}
